﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="shi_visa_info4.aspx.cs"
    Inherits="FS.Web.BLL.Visa_Base.shi_visa_info4" %>

<%@ Register Src="../../UserControl/PageControl.ascx" TagName="PageControl" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/Validator/JValidator.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/artDialog.source.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/iframeTools.source.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" class="frm">
        <tr>
            <th>
                起始出签时间：
            </th>
            <td>
                <input id="S_InfoDetail_Receivedate" name="S_InfoDetail_Receivedate" runat="server"
                    type="text" class="txt" datacol="yes" err="收签时间" style="width: 100px" onfocus="WdatePicker({dateFmt: 'yyyy-MM-dd' })" />
            </td>
            <th>
                截止出签时间：
            </th>
            <td>
                <input id="E_InfoDetail_Receivedate" name="E_InfoDetail_Receivedate" runat="server"
                    type="text" class="txt" datacol="yes" err="收签时间" style="width: 100px" onfocus="WdatePicker({dateFmt: 'yyyy-MM-dd' })" />
            </td>
            <th>
                委托方：
            </th>
            <td>
                <select id="trust_id" runat="server" type="text" class="select" datacol="yes" err="委托方"
                    checkexpession="NotNull" style="width: 106px" onchange="GetTrustInfo()" />
            </td>
            <th>
                国家：
            </th>
            <td>
                <asp:DropDownList ID="ddlp_city" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlp_city_SelectedIndexChanged"
                    Style="width: 100px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <th>
                签证类型：
            </th>
            <td>
                <asp:DropDownList ID="ddlp_type" runat="server" Style="width: 100px">
                </asp:DropDownList>
            </td>
            <th>
                客人姓名：
            </th>
            <td>
                <input id="InfoDetail_user" runat="server" type="text" class="txt" datacol="yes"
                    err="联系人" checkexpession="NotNull" style="width: 100px" />
            </td>
            <th>
                联系电话：
            </th>
            <td>
                <input id="InfoDetail_userphone" runat="server" type="text" class="txt" datacol="yes"
                    err="联系人" checkexpession="NotNull" style="width: 100px" />
            </td>
            <th>
                证件号：
            </th>
            <td>
                <input id="InfoDetail_cardno" runat="server" type="text" class="txt" datacol="yes"
                    err="联系人" checkexpession="NotNull" style="width: 100px" />
            </td>
        </tr>
        <tr>
            <th>
                经办人：
            </th>
            <td>
                <input id="InfoDetail_operationname" runat="server" type="text" class="txt" datacol="yes"
                    err="联系人" checkexpession="NotNull" style="width: 100px" />
            </td>
            <td colspan="4">
                <input id="Hchange" type="hidden" runat="server" value="0" />
                <asp:LinkButton ID="lbtSearch" runat="server" class="button green" OnClick="lbtSearch_Click"><span class="icon-botton"
            style="background: url('../../Themes/images/Search.png') no-repeat scroll 0px 4px;">
        </span>查 询</asp:LinkButton>
        <asp:LinkButton ID="lbtExport" OnClientClick="getHtmltoValue()" runat="server" class="button green"
                    OnClick="lbtExport_Click"><span class="icon-botton"
            style="background: url('../../Themes/images/16/page_excel.png') no-repeat scroll 0px 4px;">
        </span>导 出</asp:LinkButton>
                <asp:LinkButton ID="lbtPrint" runat="server" class="button green"><span class="icon-botton"
            style="background: url('../../Themes/images/16/Printer.png') no-repeat scroll 0px 4px;">
        </span>打 印</asp:LinkButton>
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="printHid" runat="server" />
    <div id="printDiv">
    <table id="table1" class="grid" singleselect="true">
        <thead>
            <tr>
                <td style="width: 20px; text-align: left;">
                    <label id="checkAllOff" onclick="CheckAllLine()" title="全选">
                        &nbsp;</label>
                </td>
                <td style="width: 110px; text-align: center;">
                    客人姓名
                </td>
                <td style="width: 100px; text-align: center;">
                    送签日期
                </td>
                <td style="width: 100px; text-align: center;">
                    出签日期
                </td>
                <td style="width: 100px; text-align: center;">
                    联系电话
                </td>
                <td style="width: 70px; text-align: center;">
                    签证国家
                </td>
                <td style="width: 70px; text-align: center;">
                    签证类型
                </td>
                <td style="width: 100px; text-align: center;">
                    应收费用
                </td>
                <td style="width: 100px; text-align: center;">
                    收款情况
                </td>
                <td style="width: 100px; text-align: center;">
                    发票
                </td>
                <td style="width: 100px; text-align: center;">
                    寄件类型
                </td>
                <td style="width: 100px; text-align: center;">
                    寄件单号
                </td>
                <td style="width: 100px; text-align: center;">
                    寄件备注
                </td>
                <td style="width: 100px; text-align: center;">
                    委托方
                </td>
            </tr>
        </thead>
        <tbody>
            <asp:Repeater ID="rp_Item" runat="server">
                <ItemTemplate>
                    <tr>
                        <td style="width: 20px; text-align: left;">
                            <input type="checkbox" value="<%#Eval("InfoDetail_ID")%>" name="checkbox" />
                        </td>
                        <td style="width: 110px;">
                            <%#Eval("InfoDetail_user")%>
                        </td>
                        <td style="width: 100px;">
                            <%#Eval("InfoDetail_Submitdate")%>
                        </td>
                        <td style="width: 100px;">
                            <%#Eval("InfoDetail_Receivedate")%>
                        </td>
                        <td style="width: 100px;">
                            <%#Eval("InfoDetail_userphone")%>
                        </td>
                        <td style="width: 100px;">
                            <%#Eval("City_name")%>
                        </td>
                        <td style="width: 100px;">
                            <%#Eval("parm_Value")%>
                        </td>
                        <td style="width: 100px;">
                            <%#Eval("InfoDetai_EndPrice")%>
                        </td>
                        <td style="width: 100px;">
                            <%#Eval("ref_moneyflag")%>
                        </td>
                        <td style="width: 100px;">
                            <%#Eval("INVOICE")%>
                        </td>
                        <td style="width: 100px;">
                            <%#Eval("ref_POSTBY")%>
                        </td>
                        <td style="width: 100px;">
                            <%#Eval("POSTNO")%>
                        </td>
                        <td style="width: 100px;">
                            <%#Eval("POST_REMARK")%>
                        </td>
                        <td style="width: 70px;">
                            <%#Eval("trust_name")%>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    <% if (rp_Item != null)
                       {
                           if (rp_Item.Items.Count == 0)
                           {
                               Response.Write("<tr><td colspan='8' style='color:red;text-align:center'>没有找到您要的相关数据!！</td></tr>");
                           }
                       } %>
                </FooterTemplate>
            </asp:Repeater>
        </tbody>
    </table></div>
    <uc1:PageControl ID="PageControl1" runat="server" />
    </form>
    <script type="text/javascript">
        function getHtmltoValue() {
            document.getElementById("<%=printHid.ClientID%>").value = document.getElementById("printDiv").innerHTML;
        }     
    </script>
</body>
</html>
